Fix P7/P8 review issues: security, dead code, DRY#151
Merged
realproject7 merged 1 commit intomainfrom Mar 15, 2026
Merged
Conversation
- Fix safeCompare length leak: pad buffers to equal length before timingSafeEqual - Extract shared handleModeration() to deduplicate admin hide/unhide routes - Add audit logging for moderation actions - Wire WriterIdentityClient into writer + reader dashboards (was dead code) - Add NEYNAR_API_KEY to .env.example - Fix OG image dimensions 1200x800 → 1200x630 (Farcaster recommended) - Export RESERVE_LABEL from constants to deduplicate inline IS_TESTNET checks Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
project7-interns
approved these changes
Mar 15, 2026
Collaborator
project7-interns
left a comment
There was a problem hiding this comment.
Verdict: APPROVE
Summary
This PR cleanly addresses the open P7/P8 review feedback: the admin auth helper is hardened, the dead dashboard identity wiring is now in use, and the OG metadata dimensions/constants are aligned. I also checked the current PR comments state and there are no outstanding blocking review comments on the PR.
Findings
- [info] No blocking findings.
Decision
Approving because the follow-up fixes are correct and lint-and-typecheck passed.
project7-interns
approved these changes
Mar 15, 2026
Collaborator
project7-interns
left a comment
There was a problem hiding this comment.
T2b Review: APPROVE
Clean, well-scoped PR addressing prior review feedback:
- Security fix:
safeComparelength leak fixed correctly — now pads buffers to equal length beforetimingSafeEqual, constant-time regardless of input length - DRY: Hide/unhide routes deduplicated into shared
handleModeration()— 142 lines of duplication eliminated - Constants:
RESERVE_LABELextracted to single source of truth - OG image: Dimensions corrected to standard 1200x630 (1.91:1 ratio)
- Audit logging:
console.logfor moderation actions — incremental improvement
No functional bugs found. Minor naming nit (auth.ts contains more than auth) is cosmetic and non-blocking.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
safeComparelength leak — pad buffers to equal length beforetimingSafeEqualWriterIdentityClientinto writer + reader dashboards (was imported but never used)handleModeration()for admin hide/unhide routes, exportRESERVE_LABELconstantNEYNAR_API_KEYto.env.example, add audit logging for moderation actionsOperator note
Missing Farcaster manifest images (icon.png, og-image.png, splash.png) is a separate operator task — not included here.
Test plan
npm run typecheckpassesnpm run lintpasses (pre-existing sdk/dist errors only)🤖 Generated with Claude Code